<?php


namespace App\Domain;

use App\Model\UserAddress as UserAddressModel;

class UserAddress
{
    public function getUserAddressByUid($user_id)
    {
        $model = new UserAddressModel();
        return $model->getUserAddressByUid($user_id);
    }

    public function insertUserAddressInfo($userAddress_name, $userAddress_phone, $userAddress_detail, $userAddress_uid)
    {
        $model = new UserAddressModel();
        return $model->insertUserAddressInfo($userAddress_name, $userAddress_phone, $userAddress_detail, $userAddress_uid);
    }

    public function getUserAddressByUaId($ua_id)
    {
        $model = new UserAddressModel();
        return $model->getUserAddressByUaId($ua_id);
    }
}